﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MapLibrary.Players.CollisionResponse
{
    /// <summary>
    /// This is a behavior that can get triggered by a CollisionAction.
    /// 
    /// The behaviors are all updated with a boolean parameter that represents whether or not
    /// the Sprite was in contact with another Sprite whose category is contained in one of
    /// the cateogiresTriggered this frame.
    /// </summary>
    /// 
    public abstract class CollisionBehavior
    {
        /// <summary>
        /// Whether or not the Sprite was colliding with another Sprite
        /// whose category contained the category that the CollisionAction
        /// was associated with.
        /// </summary>
        /// <param name="contained"></param>
        public abstract void Update(bool contained);
    }
}
